//
//  HeaderTableViewCell.swift
//  Pods
//
//  Created by eme on 2017/3/28.
//
//

import UIKit
import RickonCore

class HeaderTableViewCell: UITableViewCell {
    
    @IBOutlet weak var storeNameLabel: UILabel!
    
    @IBOutlet weak var orderStatusLabel: UILabel!

    @IBOutlet weak var lineView: UIView!
    
    var item:TheOrderListModel?{
        didSet{
            if let model = item{
                self.storeNameLabel.text = model.bdname
                if Int(model.orderstatus)! <= 10{
                    self.orderStatusLabel.text = ["待付款","待发货","待发货","部分发货","已发货","已收货","已完成","已关闭","已关闭","已关闭","已关闭"][Int(model.orderstatus)!]
                }
                
            }
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        lineView.backgroundColor = Theme.v.separate_Line
        storeNameLabel.normal_fontSize(14)
        orderStatusLabel.normal_fontSize(14)
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
